package com.woniuxy.yygh.hsop.repository;

import com.woniuxy.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO: mongdb 部门 接口
 * <P> Date: 2022/3/1:20:22
 * <P> Description:
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {

    /**
     * TODO: 根据医院编号和部门编号查询部门信息
     **/
    Department getDepartmentByHoscodeAndDepcode(String hoscode,
                                                String depcode);
}
